/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package day04;

/**
 *
 * @author Administrator
 */
public class SNTUtils {
    
   
     /*
     * Kiem tra so nguyen to
     */

  public static boolean ktSNT(int n) {
        if (n <= 1) {
            return false;
        }
        if (n == 2 || n == 3) {
            return true;
        }
        int flag = 0;
        for (int i = 2; i < n; i++) {
            if (n % i == 0) {
                flag = 1;
                break;
            }
        }
        if (flag == 0) {
            return true;
        }

        return false;

    }
    
    
    }
    

